package com.wuhunyu.client.err;

import com.wuhunyu.client.VideoServiceClient;
import com.wuhunyu.commonutils.result.CommonResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 视频服务接口异常处理方法
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-21 20:24
 */
@Component
public class VideoServiceClientErr implements VideoServiceClient {

    @Override
    public CommonResult deleteVideo(String videoId) {
        return CommonResult.error("删除视频失败");
    }

    @Override
    public CommonResult deleteVideos(List<String> ids) {
        return CommonResult.error("批量删除视频失败");
    }

}
